package com.wry.sharding.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 *<h1>  <h1>
 *
 * @author wry
 * @since 2025/1/3 10:06
 */
@Data
@TableName("orders")
public class Orders implements Serializable {
    /**
     * 订单号
     */
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private Long orderId;

    /**
     * 订单总金额
     */
    @TableField(value = "order_price")
    private Integer orderPrice;

    /**
     * 用戶id
     */
    @TableField(value = "user_id")
    private Long userId;
}